package com.hp.service;

import com.hp.entity.Message;
import com.hp.result.DataGridResultInfo;
import com.hp.result.SubmitResultInfo;

import java.util.List;

public interface MessageService {

	public DataGridResultInfo findAll(int page, int rows)throws Exception;

	public void addmessage(Message message)throws Exception;

	public SubmitResultInfo deletemsg(String id)throws Exception;

	public SubmitResultInfo updatestatus(Message message)throws Exception;

	public List<Message> findAllByIsY()throws Exception;

	public Message findById(String id)throws Exception;

}
